package icu.sehnen.user.feign;

import icu.sehnen.common.CommonUser;
import icu.sehnen.user.feign.fallback.SendUserInfo2Rabbit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "rabbitmq",fallback = SendUserInfo2Rabbit.class)
public interface SendUserInfo2RabbitFeign {
    @RequestMapping("/sendRegisterDirectMessage")
   void sendDirectMessage(@RequestBody CommonUser commonUser);
}
